package n07.first;

public class F01 {
	public static void main(String[] args) {
		Printable[] ps= { new Student(), new Teacher(), new School(), new Library() };
		for(Printable p: ps) { //遍历接口数组中每一个对象
			Utility.printMessage(p); //根据对象实际的类型分别调用对应的方法
		}

	}
}
